|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /usr/local/CyberPanel/lib/python3.10/site-packages/docker/utils/__pycache__/ |
Upload File : |
o
��g� � @ s d dl mZ G dd� de�ZdS )� )�format_environmentc @ sd e Zd ZdZedd� �Zedd� �Zedd� �Zedd � �Ze d
d� �Z
dd
� Zdd� Zdd� Z
dS )�ProxyConfigz/
Hold the client's proxy configuration
c C �
| � d�S )N�http��get��self� r
�H/usr/local/CyberPanel/lib/python3.10/site-packages/docker/utils/proxy.pyr �
zProxyConfig.httpc C r )N�httpsr r r
r
r r
r zProxyConfig.httpsc C r )N�ftpr r r
r
r r r zProxyConfig.ftpc C r )N�no_proxyr r r
r
r r r zProxyConfig.no_proxyc C s( t | �d�| �d�| �d�| �d�d�S )a
Instantiate a new ProxyConfig from a dictionary that represents a
client configuration, as described in `the documentation`_.
.. _the documentation:
https://docs.docker.com/network/proxy/#configure-the-docker-client
� httpProxy�
httpsProxy�ftpProxy�noProxy�r r
r r )r r )�configr
r
r � from_dict s �zProxyConfig.from_dictc C sh i }| j r| j |d<